package datamining.algorithms.prefixspan;

import java.util.ArrayList;
import java.util.List;

import datamining.sequence.ItemSet;
import datamining.sequence.Sequence;
import datamining.sequence.SequenceFactory;

/** 
 * 创建于 2012-11-20 下午11:47:43
 * 
 * @author xujinghu (jinghuxu@nudt.edu.cn)
 * 
 * Copyright 2012 xujinghu
 * 
 * Lisence: Apache
 */
@SuppressWarnings("hiding")
public class PrefixSpanSequenceFactory<ItemType> implements SequenceFactory<ItemType> {

	@Override
	public Sequence<ItemType> newSequence(List<ItemSet<ItemType>> items) {
		// TODO Auto-generated method stub
		return new Sequence<ItemType>(items);
	}

	@Override
	public Sequence<ItemType> newSequence() {
		// TODO Auto-generated method stub
		ArrayList<ItemSet<ItemType>> itemSets = new ArrayList<ItemSet<ItemType>>();
		return new Sequence<ItemType>(itemSets);
	}
}
